#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""程序入口，只负责管理，不负责逻辑"""
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager


from information_bk.info import create_app,db

config_name = 'development'
# 调用info的create_app 函数获取app对象
app = create_app(config_name)

# 将app 放到DOS命令中运行
Migrate(app,db)
manager=Manager(app)
manager.add_command("db",MigrateCommand)



if __name__ == '__main__':
    manager.run()